<!--
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-04-28 20:27:07
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-05-07 16:22:32
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\financial-management\\components\\voucher-summary\\voucher-summary.component.html
 * Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<!-- <page-header-wrapper [title]="'凭证汇总'">
</page-header-wrapper>

<nz-card class="search-box" nzBordered>
    <div nz-row nzGutter="8">
        <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
            <sf #sf [schema]="searchSchema"
                [ui]="{ '*': { spanLabelFixed: 100,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true"
                [button]="'none'"></sf>
        </div>
        <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right"
            [class.expend-options]="_$expand">
            <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
            <button nz-button [disabled]="false" (click)="resetSF()">重置</button>
            <button nz-button nzType="primary" [disabled]="false" (click)='exportList()'> 导出</button>
            <button nz-button nzType="primary" [disabled]="false"> 导出明细</button>
            <button nz-button nzType="primary" [disabled]="false"> 导出凭证</button>
            <button nz-button nzType="link" (click)="expandToggle()">
                {{ !_$expand ? '展开' : '收起' }}
                <i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
            </button>
        </div>
    </div>
</nz-card> -->

<nz-card class="table-box">
    <div class="header_box">
        <label class="page_title"> <label class="driver">|</label> 凭证汇总</label>
        <div class="mr-sm">
            <button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()" acl
                [acl-ability]="['FINANCIAL-VOUCHER-list']">筛选</button>
            <button nz-button nzDanger acl
            [acl-ability]="['FINANCIAL-VOUCHER-SUMMARY-export']" (click)='exportList()'> 导出</button>
        </div>
    </div>
    <st #st [data]="service.$api_get_fico_vch_page" [columns]="columns" [req]="{  process: beforeReq }" [page]="{}"
        [loading]="false" [scroll]="{ x:'1200px',y:scrollY  }" (change)="stChange($event)">
    </st>
</nz-card>